package exo1;

public class Employe {
	private String Nom;
	private boolean Admin;
	
	public Employe(String name, boolean admin){
		this.setNom(name);
		this.setAdmin(admin);
		
		
	}

	/**
	 * @return the nom
	 */
	public String getNom() {
		return Nom;
	}

	/**
	 * @param nom the nom to set
	 */
	public void setNom(String nom) {
		Nom = nom;
	}

	/**
	 * @return the admin
	 */
	public boolean isAdmin() {
		return Admin;
	}

	/**
	 * @param admin the admin to set
	 */
	public void setAdmin(boolean admin) {
		Admin = admin;
	}
	
	@Override
	public String toString(){
		return "\t Nom : " + this.Nom + "\t Administrateur : " + this.Admin;
	}

}
